package PO;

import java.io.Serializable;
import java.util.ArrayList;

import Promotion.Discounts;
import Promotion.DiscountsList;

@SuppressWarnings("serial")
public class DiscountslistPO extends PO implements Serializable{
	ArrayList<DiscountsPO>  Discountslist=new ArrayList<DiscountsPO>();

	public DiscountslistPO (ArrayList <DiscountsPO> dlist){
		Discountslist= dlist;
	}
	public DiscountslistPO(DiscountsList  dislist){
		for(Discounts d: dislist.GetDiscountslist()){
			DiscountsPO dispo=new DiscountsPO(d);
			Discountslist.add(dispo);
		}
	}
	
	public ArrayList<DiscountsPO> GetDiscountslist(){
		return Discountslist;
	}
}

